package com.act.moudles.baseAct.service;

import com.act.moudles.user.entity.User;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.act.moudles.baseAct.entity.OnlineDeploy;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * (OnlineDeploy)表服务接口
 *
 * @author makejava
 * @since 2023-05-09 21:45:26
 */
public interface OnlineDeployService extends IService<OnlineDeploy> {


    /**
     * 统计当前用户的bpmn项目个数
     * @param bpmn
     * @return
     */
    int countByBpmnFileNameFromUser(String bpmn);

    /**
     * 上传并且部署
     * @param bpmnFile
     * @param pngFile
     */
    void  uploadFileAndDeploy(MultipartFile bpmnFile,MultipartFile pngFile,String bpmnFileName,String  deployName) throws IOException;


    /**
     * 分页查询
     * @param page
     * @param onlineDeploy
     * @return
     */
    IPage<OnlineDeploy> pageDeploy(Page<OnlineDeploy>  page,OnlineDeploy onlineDeploy);

}

